{extend name="public/layout"/}
{/block}
{block name="content"}

<div class="row">
    {include file="module/left"/}


    <div class="col-md-8" style="margin-top:70px;">

        <div class="actions clearfix">
            <div class="pull-left">
                <a href="{:url('Module/add')}"><button type="button" class="btn  btn-primary">添加</button></a>
            </div>
        </div>
        <div class="" style="margin-top:15px;">
        <table class="table table-hover table-striped">
            <tr class="active">
                <td>编号</td>
                <td>模板名</td>
                <td>模板代码路径td>
                <td>创建时间</td>
                <td>操作</td>
            </tr>
            {volist name="list" id="v"}
                <tr>
                    <td>{$v.id}</td>
                    <td>{$v.module_name}</td>
                    <td>{$v.module_tpl_url}</td>
                    <td>{$v.create_time|date="Y-m-d"}</td>
                    <td>

                        <a href="{:url('Module/fieldindex?id='.$v['id'])}">
                            <button type="button" class="btn btn-primary btn-xs">设计</button>
                        </a>
                        <a href="{:url('Module/edit?id='.$v['id'])}">
                            <button type="button" class="btn btn-success btn-xs">编辑</button>
                        </a>
                        <a href="{:url('Module/del?ids='.$v['id'])}" class="confirm ajax-get">
                            <button type="button" class="btn btn-danger btn-xs">删除</button>
                        </a>
                    </td>
                </tr>
            {/volist}
        </table>
        </div>
    </div>
</div>

{/block}



